﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<TBlog.Models.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%-- <!-- main --> --%>
		<div id="main" class="grid_8">
			<h2><a href="" rel="bookmark" title="Permanent Link to ">CreateCategory</a></h2>
    
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
                  
            <div class="editor-label">
                <%: Html.LabelFor(model => model.category_name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.category_name)%>
                <%: Html.ValidationMessageFor(model => model.category_name)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.category_description) %>
            </div>
            <div class="editor-field">
                <%//: Html.TextBoxFor(model => model.category_description) %>
                <%: Html.TextAreaFor(model => model.category_description) %>
                <%: Html.ValidationMessageFor(model => model.category_description)%>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to Category List", "Category") %>
    </div>
    </div>

</asp:Content>

